package com.libinshen.wxpay.login.service.impl;

import com.libinshen.wxpay.common.util.wxUtils.WxMiniLoginUtils;
import com.libinshen.wxpay.common.vo.CommonResult;
import com.libinshen.wxpay.login.service.WxMiniappLoginService;
import org.springframework.stereotype.Service;

@Service("wxMiniappLoginService")
public class WxMiniappLoginServiceImpl implements WxMiniappLoginService {


    @Override
    public CommonResult login(String code) {
        return WxMiniLoginUtils.getOpenIdAndsessionKey(code);
    }
}
